class PrioirityPair<T:Comparable<T>>(number1:T,number2:T){
    val first:T
    val second:T
    init {
        if(number1 >= number2){
            first = number1
            second = number2
        }else{
            first = number2
            second = number1
        }
    }

    override fun toString(): String {
        return "$first $second"
    }
}

println(PrioirityPair(1,2))
println(PrioirityPair("1","2"))
println(PrioirityPair("A","B"))